package com.loyal.loyalerp.humenresource.kaoqinMonth.model;

import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.loyal.loyalerp.humenresource.kaoqinMonth.util.CompanyIdSerialize;
import com.loyal.loyalerp.humenresource.kaoqinMonth.util.KaoqinMonthSerialize;
import com.loyal.loyalerp.humenresource.kaoqinMonth.util.UserIdSerialize;

public class RsKaoqinmonth {
    private Integer id;

    private Integer comopanyid;

    private Integer year;

    private Integer month;

    private Byte mcloseflag;

    private Date mclosedate;

    private Integer muserid;
    
    

    public RsKaoqinmonth() {
		super();
	}

	public RsKaoqinmonth(Integer comopanyid, Integer year, Integer month) {
		super();
		this.comopanyid = comopanyid;
		this.year = year;
		this.month = month;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @JsonSerialize(using=CompanyIdSerialize.class)
    public Integer getComopanyid() {
        return comopanyid;
    }

    public void setComopanyid(Integer comopanyid) {
        this.comopanyid = comopanyid;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public Integer getMonth() {
        return month;
    }

    public void setMonth(Integer month) {
        this.month = month;
    }

    public Byte getMcloseflag() {
        return mcloseflag;
    }

    public void setMcloseflag(Byte mcloseflag) {
        this.mcloseflag = mcloseflag;
    }

    @JsonSerialize(using = KaoqinMonthSerialize.class)
    public Date getMclosedate() {
        return mclosedate;
    }

    public void setMclosedate(Date mclosedate) {
        this.mclosedate = mclosedate;
    }

    @JsonSerialize(using = UserIdSerialize.class)
    public Integer getMuserid() {
        return muserid;
    }

    public void setMuserid(Integer muserid) {
        this.muserid = muserid;
    }

	@Override
	public String toString() {
		return "RsKaoqinmonth [id=" + id + ", comopanyid=" + comopanyid + ", year=" + year + ", month=" + month
				+ ", mcloseflag=" + mcloseflag + ", mclosedate=" + mclosedate + ", muserid=" + muserid + "]";
	}
    
}